<?php
class Usermanage extends CActiveRecord {
	public static function model($className = __CLASS__) {
		parent::model ( $className );
	}
	public function tableName() {
		return '{{admin}}';
	}
	
	public function rules() {
		return array (
			
			array (
				
				"name,email", 
				"safe" 
			) 
		);
	}
	public function relations() {
		return array (
			
			'groupName' => array (
				
				self::BELONGS_TO, 
				'Groups', 
				'group' 
			) 
		)
		;
	}
	public function attributeLabels() {
		return array (
			
			"id" => "id", 
			"name" => "name", 
			"pwd" => "pwd", 
			"group" => "group", 
			"phone" => "phone", 
			"passport" => "passport", 
			"email" => "email", 
			"state" => "state", 
			"createtime" => "createtime" 
		);
	}

}
?>